import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { $http } from "@utils/index.ts"; // 引入axios
import shortid from "js-shortid"; // 引入shortid,用于前端删除时生成唯一UUID标识
const inst = shortid.inst({
  salts: 4,
  initTime: "1587025320000",
});

import "@ui/antd.ts"; // 引入antd-ui组件库
import "ant-design-vue/dist/antd.less";
import "@style/app.less";

import VueBus from "vue-bus"; // 引入事件总线进行跨级组件通信
Vue.use(VueBus);

// 原型挂载，全局使用
Vue.config.productionTip = false;
Vue.prototype.$http = $http;
Vue.prototype.$uuid = inst; // 用于生成唯一id,用法：this.$uuid.gen()

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
